﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Model.Customer
{
    /// <summary>
    /// 产品零件/销售品种
    /// </summary>
    public class Product:EntityBase<Guid>
    {
        /// <summary>
        /// 产品/品种名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 年产量/销售量
        /// </summary>
        public decimal SaleWeight { get; set; }

        /// <summary>
        /// 所需钢材量
        /// </summary>
        public decimal NeedSteelWeight { get; set; }

        /// <summary>
        /// 使用钢材品种
        /// </summary>
        public string UseSteelType { get; set; }

        /// <summary>
        /// 使用钢材品种单耗
        /// </summary>
        public decimal Consumption { get; set; }

        /// <summary>
        /// 顾客外键
        /// </summary>
        public Guid CustomerId { get; set; }

        /// <summary>
        /// 顾客导航属性
        /// </summary>
        public virtual Customer Customer { get; set; }

        /// <summary>
        /// 零件列表
        /// </summary>
        public virtual ICollection<Component> Components { get; set; }
    }
    /// <summary>
    /// 零件
    /// </summary>
    public class Component : EntityBase<Guid>
    {
        /// <summary>
        /// 零件名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图样路径
        /// </summary>
        public string PatternPath { get; set; }

        /// <summary>
        /// 尺寸
        /// </summary>
        public string Size { get; set; }

        /// <summary>
        /// 下料尺寸
        /// </summary>
        public string DownSize { get; set; }

        /// <summary>
        /// 产品外键
        /// </summary>
        public Guid ProductId { get; set; }

        /// <summary>
        /// 产品导航属性
        /// </summary>
        public virtual Product Product { get; set; }
    }

    /// <summary>
    /// 采购渠道
    /// </summary>
    public class PurchasingChannel : EntityBase<Guid>
    {
        
    }
}
